﻿@{
    ViewBag.Title = "UpdateDatabase";
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    setTimeout('window.location.reload();', 30000);
</script>
@if (Session["Updating"] != null && (bool)Session["Updating"])
{
    <img id="updating" src="../../Content/images/loader.gif" alt="Updating ..." />
}
else
{
    using (Html.BeginForm("UpdateDatabase", "Profiles"))
    {
        <input type="submit" name="UpdateDatabase" value="Update database" />
    }
    using (Html.BeginForm("GetNewData", "Profiles"))
    {
        <input type="submit" name="GetNewData" value="Get new profiles" />
    }
}
